/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vasthu.api.domain;

import com.vasthu.gui.VstTableItemSelectable;
import java.util.Date;

/**
 *
 * @author moremada
 */
public class Bill implements VstTableItemSelectable {

    private long billId;
    private Date date;
    private float totalAmount;
    private long userId; //FK of User

    @Override
    public Object getValue(int col) {
        switch( col ) {
			case 0:
				return getBillId();
			case 1:
				return getDate();
			case 2:
				return getTotalAmount();
			default:
				return new String("");
		}
    }

    /**
     * @return the billId
     */
    public long getBillId() {
        return billId;
    }

    /**
     * @param billId the billId to set
     */
    public void setBillId(long billId) {
        this.billId = billId;
    }

    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * @return the totalAmount
     */
    public float getTotalAmount() {
        return totalAmount;
    }

    /**
     * @param totalAmount the totalAmount to set
     */
    public void setTotalAmount(float totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * @return the userId
     */
    public long getUserId() {
        return userId;
    }

    /**
     * @param userId the userId to set
     */
    public void setUserId(long userId) {
        this.userId = userId;
    }
}
